import pygame
from sys import exit
import random
import math
vect = pygame.math.Vector2
FPS = 60
#define sprite groups. Do this before creating sprites
textgroup = pygame.sprite.Group()
backgroundgroup = pygame.sprite.Group()
menugroup =pygame.sprite.Group()
bossgroup = pygame.sprite.Group()
bossbulletgroup = pygame.sprite.Group()
bossmisslegroup = pygame.sprite.Group()
bossGMgroup = pygame.sprite.Group()
bulletgroup = pygame.sprite.Group()
herogroup = pygame.sprite.Group()
# only the allgroup draws the sprite, so i use LayeredUpdates() instead Group()
# more sophisticated, can draw sprites in layers
allgroup = pygame.sprite.LayeredUpdates()
SCENEWIDTH = 800
SCENEHEIGHT = 860
SCENERECT = pygame.sprite.Rect(0,0,SCENEWIDTH,SCENEHEIGHT)